// question : 使用fp.flowRight; fp.prop ; fp.first 获取第一条数据的name
const fp = require('lodash/fp')

const cars = [
    {name:'Audi A4L'},
    {name:'Audi A5'},
    {name:'Audi A6L'},
    {name:'Audi A7'},
    {name:'Audi A8L'},
]
function fnProp (params){
    return fp.prop('name',params)
}
function fnFirst(arr) {
    return fp.first(arr)
}

const t = fp.flowRight(fnProp,fnFirst)
console.log(t(cars))
// Audi A4L